package com.aaa.member.service;

import com.aaa.common.bo.CouponHistory;
import com.aaa.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @fileName:CouponService
 * @description:
 * @author:zhz
 * @createTime:2020/11/21 14:48
 * @version:1.0.0
 */
@FeignClient("marketService")
public interface CouponService {
    /**
     * 根据相关条件查询下单用户可用优惠券
     * @param map
     * @return
     */
    @PostMapping("/couponHistory/queryAllInOrder")
    Result queryAllInOrder(@RequestBody Map map);

    /**
     * 修改数据
     *
     * @param couponHistory 实例对象
     * @return 实例对象
     */
    @PutMapping("/couponHistory/update")
    CouponHistory update(@RequestBody CouponHistory couponHistory);
}
